Auto merge of #4995 - alexcrichton:relative-env, r=matklad
authorbors <bors@rust-lang.org>
Thu, 1 Feb 2018 19:12:19 +0000 (19:12 +0000)
committerbors <bors@rust-lang.org>
Thu, 1 Feb 2018 19:12:19 +0000 (19:12 +0000)
commitcd5b9802218311f1b5d9fbf6767582476c2bff7f
treeeb620c2fbf73820d85bd1fc7c85e110f9104df94
parentdf11070cb574a64b167d36b012df50cf62e061b9
parente4f32bf34efa93b8b55bc0a3bc9cfa73ebae7d1c
Auto merge of #4995 - alexcrichton:relative-env, r=matklad

Fix `RUSTC=./relative-path` when building

This commit adjusts the compiler location logic to resolve `./relative-path`
before invoking rustc to ensure it's no longer cwd-relative. This is how many
other variables like `CARGO_HOME` work, so it's applying similar logic.